package vn.sms.lazylove;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class HelperActivity extends Activity {
	
	Button btnBack, btnEdit;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_help);
		TextView txtTitle=(TextView)findViewById(R.id.txt_title);
		txtTitle.setText(getString(R.string.txt_sms_help));
		btnEdit = (Button) findViewById(R.id.btn_right);
		btnBack = (Button) findViewById(R.id.btn_left);
		btnEdit.setVisibility(Button.GONE);
		btnBack.setOnClickListener(onBackBtnClickListener);
	}

	OnClickListener onBackBtnClickListener = new OnClickListener() {

		public void onClick(View v) {
			onBackPressed();
		}
	};

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_helper, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case R.id.menu_exit:
			finish();
			break;		
		default:
			finish();
			break;
		}
		return true;
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

}
